//
//  BaseClassCollectionView.m
//  FAKER
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 YHLai. All rights reserved.
//

#import "BaseClassCollectionView.h"
#import "FitHeader.h"
@implementation BaseClassCollectionView

- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
{
    self = [super initWithFrame:frame collectionViewLayout:layout];
    if (self) {
//        self.backgroundColor = [UIColor whiteColor];
        [self changeColor];
        ADD_NSNOTIFICATIONCENTER_OBSERVER;
        self.showsHorizontalScrollIndicator = 0;
        self.showsVerticalScrollIndicator = 0;
    }
    return self;
}

#pragma mark 改变颜色
- (void)changeColor
{
    if (NSUSERDEFAULTS_NIGHT) {
        self.backgroundColor = BGCOLOR_BLACK;
    } else {
        self.backgroundColor = BGCOLOR_GRAY;
    }
}

@end
